package com.ruoyi.assets.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 部门对象 assets_department
 * 
 * @author 孙帆科
 * @date 2025-03-05
 */
public class AssetsDepartment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 部门编号 */
    @Excel(name = "部门编号")
    private Long departmentId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String departmentName;

    /** 负责人 */
    @Excel(name = "负责人")
    private String leader;

    /** 手机 */
    @Excel(name = "手机")
    private String phone;

    /** 成立日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成立日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date establishDate;

    /** 撤销日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "撤销日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date revokeDate;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setDepartmentId(Long departmentId) 
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId() 
    {
        return departmentId;
    }
    public void setDepartmentName(String departmentName) 
    {
        this.departmentName = departmentName;
    }

    public String getDepartmentName() 
    {
        return departmentName;
    }
    public void setLeader(String leader) 
    {
        this.leader = leader;
    }

    public String getLeader() 
    {
        return leader;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEstablishDate(Date establishDate) 
    {
        this.establishDate = establishDate;
    }

    public Date getEstablishDate() 
    {
        return establishDate;
    }
    public void setRevokeDate(Date revokeDate) 
    {
        this.revokeDate = revokeDate;
    }

    public Date getRevokeDate() 
    {
        return revokeDate;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("departmentId", getDepartmentId())
            .append("departmentName", getDepartmentName())
            .append("leader", getLeader())
            .append("phone", getPhone())
            .append("establishDate", getEstablishDate())
            .append("revokeDate", getRevokeDate())
            .append("remarks", getRemarks())
            .toString();
    }
}
